package net.zjitc.service.impl;

import net.zjitc.dao.CategorySecondDao;
import net.zjitc.dao.impl.CategorySecondDaoImpl;
import net.zjitc.pojo.CategorySecond;
import net.zjitc.service.CategorySecondService;

import java.util.List;

/**
 * Created by Administrator on 2017/11/15.
 */
public class CategorySecondServiceImpl implements CategorySecondService{
    CategorySecondDao dao = new CategorySecondDaoImpl();
    public List<CategorySecond> findAll() {
        return dao.findAll();
    }

    public int insert(CategorySecond categorySecond) {
        return dao.insert(categorySecond);
    }

    public CategorySecond findByCSId(String csid) {
        return dao.findByCSId(csid);
    }

    public int update(CategorySecond categorySecond) {
        return dao.update(categorySecond);
    }
}
